package com.wanmait.gohome.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Comment implements Serializable {
    private Integer id;

    /**
	* 发表时间
	*/
    private Date inputTime;

    /**
     *任务表ID
     */
    private Integer taskId;

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    /**
     * 关联任务表
     */
    private Task task;

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    /**
	* 评语
	*/
    private String remark;

    /**
	* 标题
	*/
    private String titile;

    /**
	* 父类id
	*/
    private Integer parentId;

    /**
	* 关联用户表id
	*/
    private Integer userinfoId;

    private Integer enable;

    /**
	* 新闻通知表id
	*/
    private Integer newsId;
    public Userinfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }

    private Userinfo userinfo;


    private List<Comment> comments;


    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    /**
	* 关联日志表id
	*/
    private Integer journalId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTitile() {
        return titile;
    }

    public void setTitile(String titile) {
        this.titile = titile;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getUserinfoId() {
        return userinfoId;
    }

    public void setUserinfoId(Integer userinfoId) {
        this.userinfoId = userinfoId;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public Integer getJournalId() {
        return journalId;
    }

    public void setJournalId(Integer journalId) {
        this.journalId = journalId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", inputTime=").append(inputTime);
        sb.append(", remark=").append(remark);
        sb.append(", titile=").append(titile);
        sb.append(", parentId=").append(parentId);
        sb.append(", userinfoId=").append(userinfoId);
        sb.append(", enable=").append(enable);
        sb.append(", newsId=").append(newsId);
        sb.append(", journalId=").append(journalId);
        sb.append(",taskId=").append(taskId);
        sb.append("]");
        return sb.toString();
    }
}